<%@ Page Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true"
    CodeFile="Treatments.aspx.cs" Inherits="Treatments" Title="Tram Huong Spa | Treatments" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="TreatmentContainer">
            <asp:DataList ID="DataList3" runat="server" DataKeyField="Ma" DataSourceID="SqlDataSource2">
                <ItemTemplate>
                    <div id="tc_Title">
                        <asp:Label Cssclass="tc_TitleEN" ID="Ten_ENLabel" runat="server" Text='<%# Eval("Ten_EN") %>' />
                        <br />
                        <span>(</span>
                        <asp:Label Cssclass="tc_TitleRU" ID="Ten_RULabel" runat="server" Text='<%# Eval("Ten_RU") %>' />
                        <span>)</span>
                        <br />
                        <asp:Label Cssclass="tc_Details" ID="LoiGioiThieu_ENLabel" runat="server" Text='<%# Eval("LoiGioiThieu_EN") %>' />
                    </div> <!-- end of #tc_Title -->
                    <div id="tc_ImageBlock"> 
                        <asp:Image CssClass="tc_Image" ID="Image1" runat="server" ImageUrl='<%# Eval("HinhAnh") %>' />
                    </div> <!-- end of #tc_image -->
                 </ItemTemplate>
            </asp:DataList>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:TramHuongDB2ConnectionString %>"
            SelectCommand="SELECT * FROM [LoaiDichVu] WHERE ([Ma] = @Ma)">
            <SelectParameters>
                <asp:QueryStringParameter Name="Ma" QueryStringField="Id" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:DataList ID="DataList1" runat="server" DataKeyField="Ma" DataSourceID="SqlDataSource1">
            <ItemTemplate>
                <div class="ATreatment">
                    <asp:Label ID="Label5" runat="server" Text='<%# Eval("MaLoai") %>' Visible="false"></asp:Label>
                    <asp:Label ID="Label4" runat="server" Text='<%# Eval("Ma") %>' Visible="false"></asp:Label>
                    <img id="bullet" src="images/h_bullet_1.gif" alt="" width="18" height="18" />
                    <asp:Label CssClass="TitleEN" ID="Label1" runat="server" Text='<%# Eval("Ten_EN") %>'></asp:Label>
                    <span>/ </span>
                    <asp:Label CssClass="TitleRU" ID="Label3" runat="server" Text='<%# Eval("Ten_RU") %>'></asp:Label>
                    <br />
                    <asp:Label CssClass="Description" ID="Label2" runat="server" Text='<%# Eval("MoTa_EN") %>'></asp:Label>
                    <div class="clear">
                    </div>
                    <div id="prices">
                        <asp:DataList ID="DataList2" runat="server" DataSourceID="SqlDataSource1" DataKeyField="Ma">
                            <ItemTemplate>
                                <div id="price">
                                    <div id="time">
                                        <span>Time </span>
                                        <asp:Label ID="ThoiGianLabel" runat="server" CssClass="time" Text='<%# Eval("ThoiGian") %>' />
                                    </div>
                                    <div id="value">
                                        <asp:Label ID="GiaUSDLabel" runat="server" Text='<%# Eval("GiaUSD") %>' />
                                        <span>/ </span>
                                        <asp:Label ID="GiaVNDLabel" runat="server" Text='<%# Eval("GiaVND") %>' />
                                    </div>
                                </div>
                            </ItemTemplate>
                        </asp:DataList>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:TramHuongDB2ConnectionString %>"
                            SelectCommand="SELECT * FROM [BangGiaDV] WHERE ([MaDichVu] = @MaDichVu)">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="Label4" Name="MaDichVu" PropertyName="Text" Type="Int32" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </div> <!-- End of #prices -->
                </div> <!-- End of a #ATreatment -->
            </ItemTemplate>
        </asp:DataList>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:TramHuongDB2ConnectionString %>"
            SelectCommand="SELECT * FROM [DichVu] WHERE ([MaLoai] = @MaLoai)">
            <SelectParameters>
                <asp:QueryStringParameter Name="MaLoai" QueryStringField="Id" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        <div class="clear"></div>
        <div class="clearBottomPages"></div>
    </div> <!-- End of #TreatmentContainer -->
</asp:Content>
